@extends('admin.layouts.index')
@section('content')
    
    <div class="result_wrap">
        <form action="{{url('/admin/amodule/'.$data->id)}}" method="post">

        <input type="hidden" value="PUT" name="_method">
            <table class="add_tab">
                {{csrf_field()}}
                <tbody>
                    <tr>
                        <th width="120"><i class="require">*</i>分类：</th>
                        <td>
                            <select name="pic">
                            	<option value="0">==顶级分类==</option>
                            	@foreach($datas as $v) 
                            	@if($v->id == $data->pic)
                            	    	<option selected  value="{{$v->id}}">{{$v->aname}}</option>
                                    @else
                                        <option  value="{{$v->id}}">{{$v->aname}}</option>
                                    @endif
                                @endforeach
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require">*</i>分类名称：</th>
                        <td>
                            <input type="text" name="mname" value="{{$data->mname}}">
                            <span><i class="fa fa-exclamation-circle yellow"></i>分类名称必须填写</span>
                        </td>
                    </tr>
                    <tr>
                        <th>分类标题：</th>
                        <td>
                            <input type="text" class="lg" name="classify" value="{{$data->classify}}">
                        </td>
                    </tr>
                        <th><i class="require">*</i>排序：</th>
                        <td>
                            <input type="text" class="sm" name="order" value="{{$data->order}}">
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="提交">
                            <input type="button" class="back" onclick="history.go(-1)" value="返回">
                        </td>
                    </tr>

                </tbody>
            </table>
        </form>
    </div>

@endsection